package com.travel.commons.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量类
 *
 * @author pengrui.r@qq.com
 */
public class Constant {
    /**
     * 当前页码
     */
    public static final String PAGE = "page";
    /**
     * 一页显示上限
     */
    public static final String LIMIT = "limit";
    /**
     * 排序字段
     */
    public static final String ORDER_FIELD = "sidx";
    /**
     * 排序规则
     */
    public static final String ORDER = "order";
    /**
     * 升序排序
     */
    public static final String ASC = "asc";

    public static final String REVIEW_PATH = "/data/review";

    public static final String REVIEW_SEPARATOR = "-_-";

    public static final String T_SCENIC_AREA = "scenic_area";

    public static final String T_HOTEL = "hotel";

    public static final String T_ADVERTISE = "advertise";

    public static final String T_ROUTE = "route";

    public static final String T_STRATEGY = "strategy";

    public static final String SYSTEM_CONFIG_SAFE = "SYSTEM_CONFIG_SAFE";

    public static final String SYSTEM_CONFIG_ORDER_EXPIRE = "SYSTEM_CONFIG_ORDER_EXPIRE";

    /**
     * 地区代码
     */
    public static final Map<String, String> AREA_CODE = new HashMap<String, String>(){
        {
            put("北京", "BJ");
            put("天津", "TJ");
            put("上海", "SH");
            put("重庆", "CQ");
            put("河北", "HB");
            put("河南", "HN");
            put("云南", "YN");
            put("辽宁", "LN");
            put("黑龙江", "HLJ");
            put("湖南", "HuN");
            put("安徽", "AH");
            put("山东", "SD");
            put("江苏", "JS");
            put("浙江", "ZJ");
            put("江西", "JX");
            put("湖北", "HuB");
            put("甘肃", "GS");
            put("山西", "SX");
            put("陕西", "SX3");
            put("吉林", "JL");
            put("福建", "FJ");
            put("贵州", "GZ");
            put("广东", "GD");
            put("青海", "QH");
            put("四川", "SC");
            put("海南", "HaiN");
            put("台湾", "TW");
            put("新疆", "XJ");
            put("广西", "GX");
            put("内蒙古", "NMG");
            put("宁夏", "NX");
            put("西藏", "XZ");
            put("香港", "XG");
            put("澳门", "AM");
        }
    };
}
